package com.yugao.fintech.antelope.shop.model.entity;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.yugao.fintech.antelope.base.model.BasePO;
import com.yugao.fintech.antelope.base.tenant.core.DataIsolation;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 门店商品
 *

 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@TableName("shop_store_goods")
@DataIsolation(filterTenant = true, filterMainTenant = true, tableName = "shop_store_goods")
public class StoreGoods extends BasePO {
    @TableId
	private Long id;

	/**
	 * 是否已经发布(上架)
	 */
	private Boolean isPublish;
	
	/**
	 * 商品id
	 */
	private Long goodsId;

	private Long tenantId;

    public static LambdaQueryWrapper<StoreGoods> lqw() {
		return Wrappers.lambdaQuery();
	}

	public static LambdaUpdateWrapper<StoreGoods> luw() {
		return Wrappers.lambdaUpdate();
	}
}
